Skip to content

PostgreSQL: Support TO ... DEFAULT ... in a CTE CYCLE clause - #2984

Open
LucaCappelletti94 wants to merge 1 commit into
upstream/pg-cte-cyclefrom
upstream/pg-cte-cycle-mark-values
Open

LucaCappelletti94 wants to merge 1 commit into
upstream/pg-cte-cyclefrom
upstream/pg-cte-cycle-mark-values

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

CteCycleClause now carries the optional pair as mark_values so as to support WITH RECURSIVE r (id, parent_id) AS (...) CYCLE id SET is_cycle TO 'Y' DEFAULT 'N' USING path SELECT id FROM r.

This is the last PR of the CTE stack.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.50000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.22%. Comparing base (0e20689) to head (7c05012).

Files with missing lines Patch % Lines
src/ast/spans.rs 0.00% 3 Missing ⚠️
src/parser/mod.rs 71.42% 0 Missing and 2 partials ⚠️
src/ast/query.rs 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##           upstream/pg-cte-cycle    #2984      +/-   ##
=========================================================
- Coverage                  83.23%   83.22%   -0.01%     
=========================================================
  Files                         42       42              
  Lines                      35453    35469      +16     
  Branches                   35453    35469      +16     
=========================================================
+ Hits                       29510    29520      +10     
- Misses                      2479     2482       +3     
- Partials                    3464     3467       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PostgreSQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants